{include file='header.tpl'}
{include file='admin/leftcol.tpl'}
<div id="left-area">
    <span class="td4">
        <div class="breadcrumb">
            <span class="raquo"></span><a href="/">Главная</a>
            <span class="raquo"> &raquo; </span><a href="{geturl controller="admin" action="index"}">Админ панель</a>  
            <span class="raquo"> &raquo; </span><a href="{geturl controller='admin' action='help'}">Помощь</a>  
            <span class="raquo"> &raquo; </span><a href="{geturl route='edithelppage' cat=$fp->page->cat_id id=$fp->page->getId()}">Изменить страницу</a> 
        </div>
        
        <h1 class="category-title">Изменение страницы</h1>
        <div class="form">
            <form method='post'>
                <div class="row">
                    <label for="form_name">Название:</label>
                    <input type="text" id="form_name" name="name" value="{$fp->name|escape}" />
                    <br> {include file='lib/error.tpl' error=$fp->getError('name')}
                </div>
                <div class="row">
                    <label for="form_h1">h1:</label>
                    <input type="text" id="form_h1" name="h1" value="{$fp->h1|escape}" />
                    <br> {include file='lib/error.tpl' error=$fp->getError('h1')}
                </div>
                <div class="row">
                    <label for="form_content">Содержимое:</label>
                    <textarea name="content" id="form_content">{$fp->content}</textarea>
                    <br> {include file='lib/error.tpl' error=$fp->getError('content')}
                </div>
                <div class="row">
                    <label for="form_alias">Ссылка:</label>
                    <input type="text" id="form_alias" name="alias" value="{$fp->alias|escape}" />
                    <br> {include file='lib/error.tpl' error=$fp->getError('alias')}
                </div>
                <div class="row">
                    <label for="form_title">title:</label>
                    <input type="text" id="form_title" name="title" value="{$fp->title|escape}" />
                </div>
                <div class="row">
                    <label for="form_keywords">keywords:</label>
                    <input type="text" id="form_keywords" name="keywords" value="{$fp->keywords|escape}" />
                </div>
                <div class="row">
                    <label for="form_description">description:</label>
                    <input type="text" id="form_description" name="description" value="{$fp->description|escape}" />
                </div>
                <div class="row">
                    <label for="form_popular">Частая:</label>
                    <input type="checkbox" id="form_popular" name="ispop" {if $fp->isPopular == 1}checked="checked"{/if} />
                </div>
                <div class="row">
                    <label for="form_recommend">Рекомендуемая:</label>
                    <input type="checkbox" id="form_recommend" name="isrec" {if $fp->isRecommend == 1}checked="checked"{/if} />
                </div>
                <input type="hidden" name="cat_id" value="{$fp->cat_id}" />
                 <div class="submit">
                    <input type="submit" class="button green-pink" value="Сохранить страницу" />
                 </div>
            </form>
        </div>
    </span>
</div>
{include file='footer.tpl'}